package com.zero.test2;

public class Chick extends Animal{
    public Chick() {
    }

    public Chick(String name, String age, String color) {
        super(name, age, color);
    }
    @Override
    public void eat(){
        System.out.println("吃小米");
    }
    public void layEggs() {
        System.out.println(getColor() +"色的"+ getAge() + "岁的鸡" + getName() + "在下蛋");
    }
}
